package org.jeecg.modules.demo.crm.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;
import org.jeecg.common.constant.ProvinceCityArea;
import org.jeecg.common.util.SpringContextUtils;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecg.modules.demo.crm.annotation.FileField;
import org.jeecg.modules.demo.crm.annotation.TitleField;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 报销表
 * @Author: jeecg-boot
 * @Date:   2025-06-20
 * @Version: V1.0
 */
@Data
@TableName("c_reimbursement")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="c_reimbursement对象", description="报销表")
public class CReimbursement implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**报销名称*/
	@Excel(name = "报销名称", width = 15)
    @ApiModelProperty(value = "报销名称")
    @TitleField // AOP 监听文件数据，存入文件表
    private String reimbursementName;
	/**项目id*/
    @Excel(name = "项目", width = 15, dictTable = "c_project_application", dicText = "project_name", dicCode = "id")
    @Dict(dictTable = "c_project_application", dicText = "project_name", dicCode = "id")
    @ApiModelProperty(value = "项目id")
    @TableField(updateStrategy = FieldStrategy.IGNORED)//空值也会修改
    private String projectId;
	/**子项目ID*/
	@Excel(name = "子项目ID", width = 15, dictTable = "c_sub_project", dicText = "sub_project_name", dicCode = "id")
	@Dict(dictTable = "c_sub_project", dicText = "sub_project_name", dicCode = "id")
    @ApiModelProperty(value = "子项目ID")
    @TableField(updateStrategy = FieldStrategy.IGNORED)//空值也会修改 null修改
    private String subProjectId;

    /**任务id*/
    @Excel(name = "任务id", width = 15, dictTable = "c_task", dicText = "name", dicCode = "id")
    @Dict(dictTable = "c_task", dicText = "name", dicCode = "id")
    @TableField(updateStrategy = FieldStrategy.IGNORED)//空值也会修改 null修改
    @ApiModelProperty(value = "任务id")
    private String taskId;
	/**总包主体ID*/
	@Excel(name = "总包主体ID", width = 15, dictTable = "c_company_info", dicText = "company_name", dicCode = "id")
	@Dict(dictTable = "c_company_info", dicText = "company_name", dicCode = "id")
    @TableField(updateStrategy = FieldStrategy.IGNORED)//空值也会修改 null修改
    @ApiModelProperty(value = "总包主体ID")
    private String companyId;
	/**报销金额*/
	@Excel(name = "报销金额", width = 15)
    @ApiModelProperty(value = "报销金额")
    private BigDecimal amount;
	/**相关文件路径*/
	@Excel(name = "相关文件路径", width = 15)
    @ApiModelProperty(value = "相关文件路径")
    @FileField // AOP 监听文件数据，存入文件表
    private String filePath;
	/**报销描述*/
	@Excel(name = "报销描述", width = 15)
    @ApiModelProperty(value = "报销描述")
    private String description;
	/**审核状态*/
	@Excel(name = "审核状态", width = 15, dicCode = "audit_status")
	@Dict(dicCode = "audit_status")
    @ApiModelProperty(value = "审核状态")
    private String auditStatus;
	/**审核人*/
    @Excel(name = "审核人", width = 15, dictTable = "sys_user", dicText = "username", dicCode = "id")
    @Dict(dictTable = "sys_user", dicText = "username", dicCode = "id")
    private String auditor;
	/**审核备注*/
	@Excel(name = "审核备注", width = 15)
    @ApiModelProperty(value = "审核备注")
    private String auditorDescription;
	/**回执文件*/
	@Excel(name = "回执文件", width = 15)
    @ApiModelProperty(value = "回执文件")
    @FileField // AOP 监听文件数据，存入文件表
    private String receiptFile;
	/**报销类型*/
	@Excel(name = "报销类型", width = 15, dicCode = "reimbursement_type")
	@Dict(dicCode = "reimbursement_type")
    @ApiModelProperty(value = "报销类型")
    private String reimbursementType;
	/**申请人*/
	@Excel(name = "申请人", width = 15, dictTable = "sys_user", dicText = "username", dicCode = "id")
	@Dict(dictTable = "sys_user", dicText = "username", dicCode = "id")
    @ApiModelProperty(value = "申请人")
    private String userId;
	/**审核时间*/
	@Excel(name = "审核时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "审核时间")
    @TableField(updateStrategy = FieldStrategy.IGNORED)//空值也会修改
    private Date auditorDate;

    /**银行名称*/
    @Excel(name = "银行名称", width = 15, dicCode = "bank_name")
    @Dict(dicCode = "bank_name")
    @ApiModelProperty(value = "银行名称")
    private String bankName;
    /**支行信息*/
    @Excel(name = "支行信息", width = 15)
    @ApiModelProperty(value = "支行信息")
    private String bankBranch;
    /**银行账号*/
    @Excel(name = "银行账号", width = 15)
    @ApiModelProperty(value = "银行账号")
    private String accountNumber;
    /**开户人名称*/
    @Excel(name = "开户人名称", width = 15)
    @ApiModelProperty(value = "开户人名称")
    private String accountHolderName;
}
